import 'package:flutter/material.dart';
// 移除 google_fonts 导入
// import 'package:google_fonts/google_fonts.dart';

class AppTheme {
  // ZenToon color palette
  static const Color primaryRed = Color(0xFF965048);
  static const Color lightPeach = Color(0xFFF3E0D6);
  static const Color darkBrown = Color(0xFF42312C);
  static const Color mediumBrown = Color(0xFFC59C88);
  static const Color pinkBrown = Color(0xFFDBAEAF);
  static const Color purpleBrown = Color(0xFFA36B83);
  static const Color coral = Color(0xFFD06D6D);
  static const Color darkRed = Color(0xFF8C1720);
  static const Color goldenBrown = Color(0xFFE4BC94);
  static const Color buttonBgColor = Color(0xFFe648aa);

  static ThemeData get lightTheme {
    return ThemeData(
      useMaterial3: true,
      colorScheme: const ColorScheme.light(
        primary: primaryRed,
        secondary: coral,
        surface: lightPeach,
        onPrimary: Colors.white,
        onSecondary: Colors.white,
        onSurface: Color(0xFF211839),
      ),
      textTheme: const TextTheme(
        headlineLarge: TextStyle(
          color: darkBrown,
          fontWeight: FontWeight.bold,
        ),
        headlineMedium: TextStyle(
          color: darkBrown,
          fontWeight: FontWeight.w600,
        ),
        bodyLarge: TextStyle(
          color: darkBrown,
        ),
        bodyMedium: TextStyle(
          color: darkBrown,
        ),
      ),
      appBarTheme: const AppBarTheme(
        backgroundColor: Color(0xFF211839),
        foregroundColor: darkBrown,
        elevation: 0,
        scrolledUnderElevation: 1,
        titleTextStyle: TextStyle(
          color: Colors.white,
          fontSize: 17,
          fontWeight: FontWeight.w600,
        ),
      ),
      bottomNavigationBarTheme: const BottomNavigationBarThemeData(
        backgroundColor: Colors.white,
        selectedItemColor: primaryRed,
        unselectedItemColor: Colors.grey,
        type: BottomNavigationBarType.fixed,
        elevation: 8,
      ),
      elevatedButtonTheme: ElevatedButtonThemeData(
        style: ElevatedButton.styleFrom(
          backgroundColor: primaryRed,
          foregroundColor: Colors.white,
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(8),
          ),
        ),
      ),
    );
  }

  static ThemeData get darkTheme {
    return ThemeData(
      useMaterial3: true,
      colorScheme: const ColorScheme.dark(
        primary: coral,
        secondary: primaryRed,
        surface: darkBrown,
        background: Color(0xFF1A1A1A),
        onPrimary: Colors.white,
        onSecondary: Colors.white,
        onSurface: lightPeach,
        onBackground: lightPeach,
      ),
      textTheme: ThemeData.dark().textTheme,
    );
  }
}
